package com.xuef.repository;

import com.xuef.entity.Catalog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by moveb on 2018/5/8.
 */
@Repository
public interface CatalogRepository extends JpaRepository<Catalog, Integer> {
    List<Catalog> findByUserId(int id);
}
